<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文档处理工具 - Word文档处理结果</title>
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary-color: #3498db;
            --primary-dark: #2980b9;
            --secondary-color: #2ecc71;
            --secondary-dark: #27ae60;
            --text-color: #333;
            --light-gray: #f5f5f5;
            --medium-gray: #e0e0e0;
            --dark-gray: #777;
            --white: #ffffff;
            --shadow: 0 4px 15px rgba(0,0,0,0.1);
            --border-radius: 8px;
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
            line-height: 1.5;
            color: var(--text-color);
            background-color: var(--light-gray);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            font-size: 0.95rem;
        }
        
        .container {
            max-width: 900px;
            width: 90%;
            margin: 40px auto;
            background-color: var(--white);
            padding: 40px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            animation: fadeIn 0.8s ease;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        h1 {
            color: var(--primary-color);
            text-align: center;
            margin-bottom: 25px;
            font-weight: 700;
            font-size: 1.9rem;
            position: relative;
            padding-bottom: 12px;
        }
        
        h1::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            border-radius: 2px;
        }
        
        /* 导航菜单样式 */
        .nav-menu {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
            background-color: var(--light-gray);
            border-radius: var(--border-radius);
            padding: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .nav-menu a {
            text-decoration: none;
            color: var(--text-color);
            padding: 10px 20px;
            border-radius: var(--border-radius);
            margin: 0 5px;
            transition: all 0.1s ease;
            font-weight: 500;
            position: relative;
            overflow: hidden;
        }
        
        .nav-menu a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--primary-color);
            border-radius: var(--border-radius);
            z-index: -1;
            transform: translateY(100%);
            transition: transform 0.1s ease;
        }
        
        .nav-menu a:hover {
            color: var(--white);
        }
        
        .nav-menu a:hover::before {
            transform: translateY(0);
        }
        
        .nav-menu a.active {
            background-color: var(--primary-color);
            color: white;
        }
        
        .nav-menu a i {
            margin-right: 8px;
        }
        
        .success-box {
            text-align: center;
            background-color: #f0fff4;
            border-radius: var(--border-radius);
            padding: 40px 20px;
            margin: 30px 0;
            border-left: 4px solid var(--secondary-color);
            box-shadow: var(--shadow);
        }
        
        .success-icon {
            font-size: 5rem;
            color: var(--secondary-color);
            margin-bottom: 20px;
            animation: bounce 1s ease infinite alternate;
        }
        
        @keyframes bounce {
            from {
                transform: scale(1);
            }
            to {
                transform: scale(1.1);
            }
        }
        
        .download-button {
            background: linear-gradient(to right, var(--secondary-color), var(--secondary-dark));
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-size: 1rem;
            font-weight: 500;
            letter-spacing: 0.5px;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 200px;
            text-decoration: none;
            margin-top: 20px;
        }
        
        .download-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(39, 174, 96, 0.3);
        }
        
        .download-button i {
            margin-right: 10px;
        }
        
        .note-box {
            background-color: var(--light-gray);
            border-radius: var(--border-radius);
            padding: 20px;
            margin-top: 40px;
            border-left: 4px solid var(--primary-color);
        }
        
        .note-box h3 {
            margin-bottom: 15px;
            color: var(--primary-dark);
        }
        
        .note-box ul {
            padding-left: 20px;
        }
        
        .note-box li {
            margin-bottom: 8px;
        }
        
        .back-button {
            background-color: var(--medium-gray);
            color: var(--text-color);
            border: none;
            padding: 10px 20px;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            text-decoration: none;
            margin-top: 15px;
        }
        
        .back-button:hover {
            background-color: var(--dark-gray);
            color: var(--white);
        }
        
        .back-button i {
            margin-right: 8px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>文档处理工具</h1>
        
        <!-- 导航菜单 -->
        <div class="nav-menu">
            <a href="/"><i class="fas fa-file-pdf"></i>PDF处理</a>
            <a href="/word" class="active"><i class="fas fa-file-word"></i>Word处理</a>
        </div>
        
        <div class="success-box">
            <div class="success-icon">
                <i class="fas fa-check-circle"></i>
            </div>
            <h2>处理成功！</h2>
            <p>您的Word文档已成功处理，已移除页眉页脚并保留页码</p>
            
            <div style="display: flex; justify-content: center; margin-top: 30px;">
                <a th:href="@{'/word/download/' + ${filename}}" class="download-button">
                    <i class="fas fa-download"></i>
                    下载处理后的文档
                </a>
            </div>
            
            <div style="margin-top: 20px;">
                <a href="/word" class="back-button">
                    <i class="fas fa-arrow-left"></i>
                    处理新文档
                </a>
            </div>
        </div>
        
        <div class="note-box">
            <h3><i class="fas fa-info-circle"></i> 文件信息</h3>
            <ul>
                <li>文件已成功处理，页眉已完全移除</li>
                <li>页脚内容已被移除，但页码已保留</li>
                <li>处理后的文档将在系统中临时保存，请及时下载</li>
                <li>如果您需要继续处理其他文档，请点击"处理新文档"</li>
            </ul>
        </div>
    </div>
</body>
</html> 